<template>
  <div class="agency-achievement">
    <div class="agency-achievement-header">
      <span class="agency-achievement-header-left">用户拉新</span>
    </div>
    <el-tabs v-model="active">
      <el-tab-pane label="全局设置" name="1">
        <Global v-if="active === '1'"/>
      </el-tab-pane>
      <el-tab-pane label="代理商设置" name="2">
        <Agent v-if="active === '2'"/>
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script>
import Global from './components/distributionset/refresh/global'
import Agent from './components/distributionset/refresh/agent'
export default {
  components: {
    Global,
    Agent
  },
  data() {
    return {
      active: '1'
    }
  }
}
</script>

<style lang="scss">
.agency-achievement{
  .el-tabs{
    padding: 0 20px;
  }
&-header {
    color: rgb(52, 172, 228);
    padding: 10px 30px;
    background: #ebf4ff;
    margin-top: 20px;
    overflow: hidden;
    &-left {
      font-size: 18px;
      line-height: 1.8;
    }
  }
}
</style>

<!--<template>
    <div>
    <div class="setting-title">服务到期提醒</div>
    <div class="content">
      <p class="text-color">亲爱的客户您好：EduSoho分销服务已到期，如需继续使用，欢迎您订购EduSoho分销功能。</p>
      <a href="http://www.baidu.com" target="_blank">
        <el-button type="primary" @click="orderBtn">立即订购</el-button>
      </a>
      <el-dialog :visible.sync="dialogVisible" title="服务购买中" width="30%">
        <p>请在新开页面中完成购买。</p>
        <p>如在购买过程中遇到问题，请联系网站客服解决。</p>
        <span slot="footer" class="dialog-footer">
          <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
        </span>
      </el-dialog>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      buy: 'http://www.baidu.com',
      dialogVisible: false
    }
  },
  methods: {
    orderBtn() {
      this.dialogVisible = true
    }
  }
}
</script>
<style lang="scss" scoped>
.content {
  padding-top: 20px;
  padding-left: 40px;
}
.setting-title {
  color: #34ace4;
  padding: 18px 30px;
  background: #ebf4ff;
  margin-top: 20px;
  overflow: hidden;
}
.text-color {
  color: #666;
  margin-bottom: 30px;
}
</style>-->

